package com.example.myapplication.adapter

import android.util.Log
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.myapplication.R
import com.example.myapplication.bean.AdapterDataBean

class QuickAdapter(layoutResId: Int, data: MutableList<AdapterDataBean>?) : BaseQuickAdapter<AdapterDataBean, BaseViewHolder>(layoutResId, data) {
    override fun convert(helper: BaseViewHolder?, item: AdapterDataBean?) {
//        Log.i("adapter",item?.text1)
//        Log.i("adapter",item?.text2)
        helper?.setText(R.id.text1,item?.text1)
        helper?.setText(R.id.text2,item?.text2)
        helper?.addOnClickListener(R.id.text1)
        helper?.addOnClickListener(R.id.text2)
    }
}